package com.itasura.chain.doctor;

import com.itasura.chain.AbstractWorkChain;
import com.itasura.chain.RegisterType;

/**
 * @author sailor wang
 * @date 2018/8/27 下午3:31
 * @description
 */
public class DoctorPool {
    private static AssayChain assayChain = new AssayChain();

    private static InternalChain internalChain = new InternalChain();

    private static NeurologyChain neurologyChain = new NeurologyChain();

    private static SurgeryChain surgeryChain = new SurgeryChain();

    public static AbstractWorkChain getDoctor(RegisterType registerType){
        switch (registerType){
            case ASSAY: return assayChain;
            case INTERNAL: return internalChain;
            case NEUROLOGY: return neurologyChain;
            case SURGERY: return surgeryChain;
            default:
                return null;
        }
    }
}